package com.itlong.cloud.enumerate;

/**
 * <desc>
 *     云门禁设备与云端同步业务数据指令
 * </desc>
 *
 * @createDate 2019/02/26
 */
public enum CloudEntranceChangeBusinessEnum {

    PUSH_PROJECT(1,"项目信息变更","JSONObject,类似{projectId:88888888}"),
    PUSH_ROOM_PWD(2,"固定密码信息","JSONObject,类似[{roomId:1,buildId:1,unitId:2},{roomId:1,buildId:1,unitId:2}]"),
    PUSH_RE_LOGIN(3,"云门禁业务服务器地址变更","JSONObject,类似{projectId:88888888}"),
    PUSH_DEVICE_ONE(4,"云门禁单个设备物理地址变更","JSONObject,类似{projectId:88888888,deviceUnique:00000315002,sn:00000315002001}"),
    PUSH_DEVICE(5,"设备信息变更","JSONArray,类似[{deviceUnique:8888888830001},{deviceUnique:8888888830002},{deviceUnique:8888888830003}]"),
    PUSH_USER_PROJECT(6,"用户所在项目信息变更","JSONObject,类似{userId:123,projectId:88888888}"),
    PUSH_USER_ROOM(7,"用户的房间信息变更","JSONArray,类似[{userId:123,roomId:1},{userId:123,roomId:2},{userId:123,roomId:3}]"),
    PUSH_TEMP_AUTH(8," 用户临时权限信息变更","JSONArray,类似{userId:xxxxxxxxxx,projectId:88888888,type:1}"),
    PUSH_BLACK_LIST(9,"黑名单信息变更","JSONArray,类似{roomId:xxxxxx,projectId:123}"),
    PUSH_MEDIA(10,"多媒体信息变更","JSONObject,类似{projectId:88888888}"),
    PUSH_FACE_INFO(11,"人脸信息变更","JSONobject,类似{projectId:88888888}"),
    ;

    private Integer commandType; //指令类型
    private String commandDes; //指令描述
    private String commandParameter;  // 指令参数示例

    CloudEntranceChangeBusinessEnum(Integer commandType, String commandDes, String commandParameter){
        this.commandType = commandType;
        this.commandDes = commandDes;
    }
    public Integer getCommandType(){
        return this.commandType;
    }
    public String getCommandDes(){
        return this.commandDes;
    }

}
